$(function () {
    //初始化最大化操作
    $("#selectExpand").off("click").on("click",function (a) {
        var ass = $("#expandManage").hasClass("height-full width-full m-0");
        if (ass){
            $("#expandManage").removeClass("height-full width-full m-0");
        }else{
            $("#expandManage").addClass("height-full width-full m-0");
        }
    });
    if($("#selecttask").length > 0){
        $("#selecttask").trigger("click");
    }else{
        $("#selectMytask").trigger("click");
    }

});
/**电话任务**/
function taskDistue(){
    $.post(ctx+"SalePhone/loadSaleCreatephone",function (r) {
        $("#salePhoneContent").empty().append(r);
    });
    $("#selectType").val("1");
    $("#selecttask").parent().css("background","beige");
    $("#selectMytask").parent().css("background","");
}

/**我的任务**/
function selectMytask(){
    $("#selectType").val("2");
    $.post(ctx+"SalePhone/loadSalePersonphone",function (r) {
        $("#salePhoneContent").empty().append(r);
    });
    $("#selecttask").parent().css("background","");
    $("#selectMytask").parent().css("background","beige");
}





